package com.glodon.paas.document.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glodon.paas.document.dao.domain.ProjectResourceEntity;

public interface ProjectResourceEntityMapper {

    // int deleteByPrimaryKey(String id);
    //
     int insert(ProjectResourceEntity record);
     
     int updateByPrimaryKey(ProjectResourceEntity record);
    //
    // ProjectResourceEntity selectByPrimaryKey(String id);

    List<ProjectResourceEntity> selectByUser(String userId);
    
    List<ProjectResourceEntity> selectByFile(String fileId);
    
    List<ProjectResourceEntity> selectByUserFile(@Param("userId")String userId, @Param("fileId")String fileId);
    
    List<ProjectResourceEntity> selectByFileRole(@Param("fileId")String fileId, @Param("roleId")String roleId);
}
